package com.dasberg.guice.testobjects;

import com.dasberg.guice.InjectDependencies;
import com.google.inject.Inject;

import java.util.Set;

/**
 * A machine that sells snacks.
 * @author mischa
 */
public class SnackMachine implements Machine<ISnack> {
    private Set<ISnack> snacks;

    /**
     * Constructor.
     * @param snacks The snacks.
     */
    @Inject
    public SnackMachine(Set<ISnack> snacks) {
        this.snacks = snacks;
    }

    /** {@inheritDoc}. */
    public Set<ISnack> getObjects() {
        return snacks;
    }
}